Separate Page Spell Checking

To use RapidSpell Web to spell check a web page in separate mode, create a page holding the RapidSpellWeb control, then add the RapidSpellWebLauncher control to your existing page with the text element you want checked, referencing the page you created with RapidSpellWeb in the RapidSpellWebPage property.

Code Example From SpellCheckSeparatePage.aspx

Page containing the RapidSpellWeb control.

<%@ Page Language="C#"%>
<%@ Register TagPrefix="RapidSpellWeb" Namespace="Keyoti.RapidSpell"
Assembly="Keyoti.RapidSpellWeb" %>
<HTML>
    <BODY >
<RapidSpellWeb:RapidSpellWeb id="rapidSpellWeb" runat="server">
        <IgnoreButton
            Style="font-family:'Tahoma,Arial,Helvetica';font-size:10pt;
border:1px solid #b5bed6; background-color:#dddddd; width: 90px;"

onMouseOver="this.style.backgroundColor='#b5bed6';this.style.borderColor='#08246b';"

onMouseOut="this.style.backgroundColor='#dddddd';this.style.borderColor='#b5bed6';"

        />
        <IgnoreAllButton
            .... />
        <AddButton
            .... />
        <ChangeButton
            .... />
        <ChangeAllButton
            .... />
        <FinishButton
            .... />
        </RapidSpellWeb:RapidSpellWeb>
</BODY>
</HTML>

Code Example From exampleTextBox5-Separate.aspx

Page containing the RapidSpellWebLauncher control

<%@ Page Language="C#" %>
<%@ Register TagPrefix="RapidSpellWeb" Namespace="Keyoti.RapidSpell"
Assembly="Keyoti.RapidSpellWeb" %>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
    <BODY>

        //if this page is to show the text input box
        <% if(Request.Form.Get("fMessage") == null){ %>
        <form action='exampleTextBox1.aspx' method='post' name='myForm'>
        <input type='hidden' name='fMessage' value='complete'>
        //if showing the text box for the first time, no spell check performed

        <% if(Request.Form.Get("RSCallBack") == null){ %>

            <textarea name="sourceTextBox" wrap='true' cols='40' rows='10'>
                This is some sample text with daliberate spelling errars
            </textarea>

        <% } else { %>

            //spell check has been run, so show the corrected text
            <textarea name="sourceTextBox" wrap='true' cols='55' rows='10'>
                <%= Request.Form.Get("CorrectedText") %>
            </textarea>

        <% } %>
            <br>

            <RapidSpellWeb:RapidSpellWebLauncher id="rapidSpellWebLauncherSep"
                runat="server"
                TextComponentName="myForm.sourceTextBox"
                CallBack="exampleTextBox5-separate.aspx"
                Mode="separate"
                RapidSpellWebPage="SpellCheckSeparatePage.aspx" >
                <Button Style="font-family:'Tahoma,Arial'; border:1px solid
#b5bed6; background-color:#dddddd;"

onMouseOver="this.style.backgroundColor='#b5bed6';this.style.borderColor='#08246b';"

onMouseOut="this.style.backgroundColor='#dddddd';this.style.borderColor='#b5bed6';"

                    Value="Check Spelling Separate Page"
                />
            </RapidSpellWeb:RapidSpellWebLauncher>
        <input type='submit' Style="font-family:'Tahoma,Arial'; border:1px solid
#b5bed6; background-color:#dddddd;"
onMouseOut="this.style.backgroundColor='#dddddd';this.style.borderColor='#b5bed6';"
onMouseOver="this.style.backgroundColor='#b5bed6';this.style.borderColor='#08246b';"
>

        </form>
        <% } else { %>
        Text entered was:
    "<%=Request.Form.Get("sourceTextBox")%>"
        <% } %>
        </BODY>
</HTML>

In these pages the style of the buttons has been set through the properties of the controls. Note that the CallBack is set to the URL of the page the user should be directed to after they have finished checking the document, this page is called with the parameter CorrectedText which holds the text after the spell check.